#ifndef QANIMALGRAPHICSITEM_H
#define QANIMALGRAPHICSITEM_H

#include "qlifegraphicsitem.h"

class QAnimal;

/**
	@author Stefan Weigert <stefan.weigert@mailbox.tu-dresden.de>
*/
class QAnimalGraphicsItem : public QLifeGraphicsItem
{
	public:
		QAnimalGraphicsItem ( QAnimal* animal, QColor color );

		~QAnimalGraphicsItem();

		void advance ( int phase );
		void paint ( QPainter* painter, const QStyleOptionGraphicsItem* option = 0, QWidget* widget = 0 );

	private:
		QAnimal* animal;
		QColor color;

		QGraphicsLineItem* enemyLine;
		QGraphicsLineItem* destLine;
		QGraphicsEllipseItem* viewEllipse;
};

#endif
